find the diagonal of a rectangle